import { createApp } from 'vue'
import App from './App.vue'
import router from "./router"
//路由守卫
import "./guard"
//面包屑组件
import bread from "./components/bread/index.vue"

//eventbus
import bus from "./utils/bus"

let app=createApp(App)

//全局注入bread,所有的组件都可以引用
app.component("bread",bread)

//将bus添加到全局
app.config.globalProperties.$bus=bus
app.use(router)

app.mount('#app')
